package soccer.view;

import javax.swing.JPanel;
import javax.swing.JLabel;
import javax.swing.JTextField;
import javax.swing.JPasswordField;
import javax.swing.JButton;
import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;

public class AdminLoginPanel extends JPanel {

	private JLabel adminNameLabel = null;
	private JLabel adminPasswordLabel = null;
	private JTextField textField = null;
	
	private JPasswordField passwordField = null;
	private JButton adminLoginButton = null;
	/**
	 * Create the panel.
	 */
	public AdminLoginPanel() {
		setLayout(null);
		
	     adminNameLabel = new JLabel("Admin Name");
		adminNameLabel.setBounds(90, 75, 91, 14);
		add(adminNameLabel);
		
		 adminPasswordLabel = new JLabel("Admin Password");
		adminPasswordLabel.setBounds(90, 119, 91, 14);
		add(adminPasswordLabel);
		
		textField = new JTextField();
		textField.setBounds(218, 72, 86, 20);
		add(textField);
		textField.setColumns(10);
		
		passwordField = new JPasswordField();
		passwordField.setBounds(218, 116, 86, 20);
		add(passwordField);
		
	    adminLoginButton =  new JButton("Login");
	    adminLoginButton.setBounds(181, 188, 89, 23);
		add(adminLoginButton);

	}
    public void addLoginButtonActionListener(ActionListener l){
    	adminLoginButton.addActionListener(l);
    }
	
	public JLabel getAdminNameLabel() {
		return adminNameLabel;
	}

	public void setAdminNameLabel(JLabel adminNameLabel) {
		this.adminNameLabel = adminNameLabel;
	}

	public JLabel getAdminPasswordLabel() {
		return adminPasswordLabel;
	}

	public void setAdminPasswordLabel(JLabel adminPasswordLabel) {
		this.adminPasswordLabel = adminPasswordLabel;
	}
	public void setAdminLoginButton(JButton adminLoginButton) {
		this.adminLoginButton = adminLoginButton;
	}
	public JButton getAdminLoginButton() {
		return adminLoginButton;
	}
	public JTextField getTextField() {
		return textField;
	}
	public void setTextField(JTextField textField) {
		this.textField = textField;
	}
	public JPasswordField getPasswordField() {
		return passwordField;
	}
	public void setPasswordField(JPasswordField passwordField) {
		this.passwordField = passwordField;
	}
}
